/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package avis.com.tp.calculator.config;


import avis.com.tp.calculator.Calculator;
import avis.com.tp.calculator.CalculatorImpl;
import org.springframework.beans.factory.annotation.Configurable;
import org.springframework.context.annotation.Bean;

/**
 *
 * @author Malotana
 */
@Configurable
public class AppConfigCalc {
    @Bean(name = "addingCalc")
    public Calculator addingCalcu() {
        return new CalculatorImpl();
    }
    
    @Bean
    public Calculator subtractCalc() {
        return new CalculatorImpl();
    }
}